package com.example.yx.demo11;

import com.example.yx.demo11.service.MyService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;

@SpringBootApplication
public class A11Application {
    private static final Logger log = LoggerFactory.getLogger(A11Application.class);
    public static void main(String[] args) {
        ConfigurableApplicationContext context = SpringApplication.run(A11Application.class, args);
        MyService myService = context.getBean(MyService.class);

        log.debug("service class: {}",myService.getClass());
        myService.foo();

    }
}
